<?php
//function getmicrotime(){ 
//   list($usec, $sec) = explode(" ",microtime()); 
//   return ((float)$usec + (float)$sec); 
//   }
////例子
//
////开始
//$time_start = getmicrotime();

//phpinfo();
//这里放你的代码

include_once($_SERVER['DOCUMENT_ROOT']."/RecJP/inc/session_check.php");
include_once($_SERVER['DOCUMENT_ROOT']."/RecJP/class/class.MainPage.php");

//phpinfo();
//if(isset($_SESSION["recitlist"])==false||empty($_SESSION["recitlist"]))
//{
//    $lst=array(1,2,3,4,5,6,7,8);
//    $_SESSION["recitlist"]=$lst;
//}

$ordeyby=null;
if(isset($_POST['orderby']))
{
	$ordeyby=$_POST['orderby'];
}

$MainPage=new MainPage();

//$MainPage->InitQuickTest();//设置弹出层的那些事儿
if(isset($_GET['l'])&&isset($_GET['bid']))
{
	$MainPage->Show($_GET['bid'],$_GET['l'],$ordeyby);
}
else
{
	$MainPage->ShowRandom($ordeyby);
}
//include_once($_SERVER['DOCUMENT_ROOT']."/RecJP/SelectUnit.php");

//结束
//$time_end = getmicrotime();
//$time = $time_end - $time_start;
//echo "Did nothing in $time seconds"; //输出运行总时间